package fr.babos.touch.events 
{
	import flash.events.Event;
	
	/**
	 * @author ZoulouX
	 */
	public class GestureTouchSwipeEvent extends GestureTouchEvent 
	{
		/**
		 * Swipe bref
		 */
		public static const SWIPE					:String 			= "gestureTouchSwipe";
		
		/**
		 * La direction du swipe
		 * 0: top
		 * 1: right
		 * 2: bottom
		 * 3: left
		 */
		public var direction						:uint;
		
		/**
		 * La distance du swipe
		 */
		public var distance							:Number				= 0;
		
		/**
		 * Le durée du swipe (en ms)
		 */
		public var duration							:uint				= 0;
		
		
		/**
		 * Le constructeur
		 * @param	type
		 * @param	bubbles
		 * @param	cancelable
		 */
		public function GestureTouchSwipeEvent (type:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
		}
		
		
		public override function clone ():Event
		{ 
			return new GestureTouchEvent(type, bubbles, cancelable);
		}
		public override function toString ():String
		{ 
			return formatToString("GestureTouchSwipeEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}
}